<template>
	<view>
		<view class="sidebar-item"
			:style="{backgroundImage: (bg === 'bg1'? borderImg.backgroundImage1 : borderImg.backgroundImage2 )}">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "my-popup",
		data() {
			return {
				// 边框图标
				borderImg: {
					backgroundImage1: 'url(' + require('@/static/style1/zh24.png') + ')',
					backgroundImage2: 'url(' + require('@/static/style2/zh24.png') + ')',
				},
				bg: this.$store.state.theme.currentBackground
			};
		}
	}
</script>

<style lang="scss" scoped>
	.sidebar-item {
		width: 597rpx;
		height: 626rpx;
		// border: 1px solid red;
		// background: url('@/static/style1/zh24.png');
		background-repeat: no-repeat;
		background-position: center center;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>